package com.ccb.sc.common.modules.order.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-25
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum OrderLogType implements IEnum<Integer> {
    /**
     * 订单日志类型
     */
    CREATE(1, "订单创建"),

    MODIFY(2,"订单修改"),

    PAYMENT(3,"订单支付"),

    CANCEL(4, "订单取消"),

    REFUNDS(5, "订单退款"),

    DELIVER(6, "订单发货"),

    RETURNS(7, "订单退货退款"),

    RECEIVED(8, "确认收货"),

    COMMENT(9, "订单评价"),

    FINISH(10, "订单完成"),
    ;

    private int value;
    private String desc;

    OrderLogType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
